package com.share.shareplatform.sharereward.service.feign;

import com.share.shareplatform.pojo.Goods;
import com.share.shareplatform.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.annotation.security.PermitAll;
@Component
@FeignClient(value = "share-goods")
public interface GoodsService {
    @GetMapping("/{id}")
    public Result findOneById(@PathVariable("id") Long id);
}
